package com.ym.dao;

import com.ym.entity.User;

import java.util.List;

/**
 *
 * @author: likang
 * @date: 2020/1/8 14:15
 * @description: 人脸信息接口-持久化层
 */
public interface FaceDao {

    /*
     * @Description: 查询所有注册用户
     * @author: likang
     * @date: 2020/1/8 14:13
     * @params: []
     * @return: java.util.List<com.ym.entity.User>
     * @exception:
     */
    public List<User> selectAllUsers();

    /*
     * @Description: 注册-保存用户信息
     * @author: likang
     * @date: 2020/1/8 14:14
     * @params: [user]
     * @return: int
     * @exception:
     */
    public int save(User user);

    /*
     * @Description: 根据用户名查询用户信息
     * @author: likang
     * @date: 2020/1/8 14:14
     * @params: [username]
     * @return: com.ym.entity.User
     * @exception:
     */
    public User queryInfoByUsername(String username);
}
